<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<!doctype html>
<html class="no-js">
<head>
    <%@ include file="./../common/meta.jsp" %>
    <link rel="stylesheet" href="../../css/ecshop-detail.css">
    <script type="text/javascript">
        var pid = "<%=request.getParameter("pid")%>";
        var num = "<%=request.getParameter("num")%>";
        var p = "<%=request.getParameter("p")%>";
        var spId = "<%=request.getParameter("spId")%>";

    </script>
</head>
<body>
<header data-am-sticky class="am-header am-header-default am-no-layout">
    <div class="am-header-left am-header-nav">
        <a href="javascript:history.go(-1);" class="">
            <i class="am-header-icon am-icon-chevron-left"></i>
        </a>
    </div>
    <h1 class="am-header-title">确认订单</h1>
</header>
<div class="am-g am-content">
    <div class="am-u-sm-12 order-main">
        <span class="left icon-address">收货地址</span>
        <div class="buy-info address">

            <ul class="am-list" id="address-list">

            </ul>
        </div>
        <div id="orderInfo">

        </div>
        <div class="buy-info">
            <div class="buy-price" id="buyPrice">
                总金额:￥<span id="totalPrice">0</span>元
            </div>
        </div>
        <button type="button" class="am-btn am-btn-primary am-btn-block" data-am-modal="{target: '#my-popup'}" id="submitOrderBtn">提交订单</button>
        </button>
    </div>
</div>

<%@ include file="./../common/footerNav.jsp" %>
<%@ include file="./../common/footer.jsp" %>
<script id="orderInfo-template" type="text/x-handlebars-template">
    {{#with e}}
        <table>
            <tr>
                <td colspan="2"><img src="{{../imgRoot}}{{picture}}" width="50px" height="50px" /></td>
                <td>{{name}}-{{introduce}}</td>
                <td>x<span id="num">1</span></td>
                <td>￥<span id="nowPrice"></span></td>
            </tr>
        </table>
    {{/with}}
</script>
<script id="address-template" type="text/x-handlebars-template">
    {{#each this}}
    <li class="am-g addressShip" data-id="{{id}}">
        <label class="am-radio-inline">
            <input type="radio" name="address" id="">{{address}}
           <br/> {{name}}  {{phone}}
        </label>
    </li>
    {{/each}}
</script>
<script src="../../js/common/common.js"></script>
<script src="../../js/ecshop/order.js"></script>
</body>
</html>